package com.hyt.it.ogt.pj.data.mapper.pj;

import java.util.List;

import org.apache.ibatis.annotations.Param;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.hyt.it.ogt.pj.data.model.entity.pj.Piece;

/**
 * <p>
 * 评卷块表 Mapper 接口
 * </p>
 *
 * @author qiaozj
 * @since 2020-07-09
 */
public interface PieceMapper extends BaseMapper<Piece> {

    List<Piece> selectBySubject(
    		@Param("subjectId") String subjectId);
    
    List<Piece> selectByProjectIdSubjectId(
    		@Param("projectId")String projectId, 
    		@Param("subjectId") String subjectId);
    
    Piece selectPaperPiece(
    		@Param("projectId")String projectId, 
    		@Param("subjectId")String subjectId, 
    		@Param("paperId")String paperId);
    
    void updateFinishStatus(
    		@Param("projectId") String projectId,
    		@Param("subjectId") String subjectId,
    		@Param("pieceId") String pieceId, 
    		@Param("status") Boolean status);
}
